package com.xb.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/***
 * @class IndexController
 * @description TODO
 * @author zch
 * @date 2019/7/17
 * @version V0.0.1.201907171514.01
 * @function
 * @modfiyDate
 * @createDate
 * @package
 */
@Controller
public class IndexController {
	@RequestMapping(value = "/", method = {RequestMethod.GET, RequestMethod.POST})
	public String index(HttpServletRequest request, HttpServletResponse response, Model model) {
		System.out.println(request.getRequestURI());
		System.out.println(request.getRemoteUser());
		return "index";
	}
}
